package com.le.tester.javaThink.fifth.chapter18_Str;

/**
 * createTime：2021/8/12 14:12
 * description：匹配Rudolph
 */
public class Rudolph {
    public static void main(String[] args) {
        for (String pattern : new String[]{"Rudolph", "[rR]udolph", "[rR][aeiou][a-z]ol.*", "R.*"}) {
            System.out.println("Rudolph".matches(pattern));
        }
    }
}
